package com.heima.wemedia.feign;

import com.heima.apis.wemedia.IWemediaClient;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUser;
import com.heima.wemedia.service.AdminUserWmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AdminUserWm  {

    @Autowired
    private AdminUserWmService adminUserWmService;


    @PostMapping("/api/v1/wemedia/updatestatus")
    public ResponseResult updateStatus(@RequestBody ApUser user) {
        return adminUserWmService.updateStatus(user);
    }
}
